// 页面
export const NOTFOUND = `${BASEDIR}/404`;
export const FORBIDDEN = `${BASEDIR}/403`;
export const HOME = `${BASEDIR}/`;
export const LOGIN = `${BASEDIR}/login`;
export const GUIDE = `${BASEDIR}/guide`;
export const ABOUT = `${BASEDIR}/about`;
export const AGREEMENT = `${BASEDIR}/agreement`;
export const ADMIN = `${BASEDIR}/admin`;
export const ACCOUNT = `${BASEDIR}/account`;
export const ASK = `${BASEDIR}/ask`;
export const REGISTER = `${BASEDIR}/register`;
export const SEARCH = `${BASEDIR}/search`;
export const CATEGORY = `${BASEDIR}/category`;
export const QA_DETAIL = `${BASEDIR}/qa`;
export const MY_QA_DETAIL = `${BASEDIR}/myqa`;
export const ANSWER_GOLD = `${BASEDIR}/answer-gold`;
export const PICK_UP = `${BASEDIR}/pick-up`;
export const SETTING = `${BASEDIR}/setting`;
export const FAVORITES = `${BASEDIR}/favorites`;
export const BROWSING = `${BASEDIR}/browsing`;
export const MESSAGE = `${BASEDIR}/message`;
export const USER_BIND = `${BASEDIR}/bind`;
export const QQ_BIND = `${BASEDIR}/qq`;
export const JUMP = `${BASEDIR}/jump`;


// 基础接口
export const VALIDATE = `${API_PREFIX || ''}/validated`; // 校验用户是否登录
export const TO_LOGIN = `${API_PREFIX || ''}/login`; // 账号密码登录
export const TO_PHONE_LOGIN = `${API_PREFIX || ''}/phone-login`; // 验证码登录
export const TO_LOGOUT = `${API_PREFIX || ''}/login-out`; // 注销
export const QUERY_VX_QRCODE = `${API_PREFIX || ''}/wechat/qr`; // 获取登录二维码
export const LOOP_QUERY_VX_STATUS = `${API_PREFIX || ''}/wechat/login`; // 获取登录二维码
export const UPDATE_USER_NAME = `${API_PREFIX || ''}/user/update/user`;
export const QUERY_USER_SYS_COUNT = `${API_PREFIX || ''}/synthesis/info`;

export const WX_SCAN_VALIDATE = `${API_PREFIX || ''}/wechat/validate`;
export const WX_QQ_BIND = `${API_PREFIX || ''}/bind`;
export const QQ_SCAN_VALIDATE = `${API_PREFIX || ''}/qq/validate`;


// 用户
// 进行个人信息编辑
export const REGISTER_USER = `${API_PREFIX || ''}/user/modify`;
// 关注用户
export const FOLLOW_USER = `${API_PREFIX || ''}/user/follow/{id}`;
// 关注列表
export const FOLLOW_USER_LIST = `${API_PREFIX || ''}/user/follows`;

/* 首页相关接口 */
// 获取热问
export const QUERY_HOT_Q = `${API_PREFIX || ''}/search/question/hot`;
// 获取热答
export const QUERY_HOT_A = `${API_PREFIX || ''}/search/answer/hot`;
// 获取问区
export const QUERY_HOT_Q_TOP = `${API_PREFIX || ''}/search/question/top50`;
// 获取答区
export const QUERY_HOT_A_TOP = `${API_PREFIX || ''}/search/answer/top50`;


// 搜索相关软件
export const QUERY_ALL_SOFT = `${API_PREFIX || ''}/soft/list`;
// 获取相关软件
export const QUERY_RELATION_SOFT = `${API_PREFIX || ''}/soft/relation`;
// 搜索标签接口
export const QUERY_ALL_TAG = `${API_PREFIX || ''}/tag/list`;

/* 搜索页相关接口 */
// 综合搜索
export const QUERY_SEARCH_COMPREHENSIVE = `${API_PREFIX || ''}/search/comprehensive`;
// 问题搜索
export const QUERY_SEARCH_Q = `${API_PREFIX || ''}/search/question`;
// 答案搜索
export const QUERY_SEARCH_A = `${API_PREFIX || ''}/search/answer`;
// 获取用户列表
export const QUERY_ALL_USER = `${API_PREFIX || ''}/search/user`;
// 获取综合数量
export const QUERY_SEARCH_TAB_COUNT = `${API_PREFIX || ''}/search/tab-count`;


// 创建问题
export const CREATE_QUESTION = `${API_PREFIX || ''}/question/modify`;
// 创建答案
export const CREATE_ANSWER = `${API_PREFIX || ''}/answer/modify`;
// 更新问题
export const UPDATE_QUESTION = `${API_PREFIX || ''}/question/modify`;
// 问题存草稿
export const SAVE_DRAFT_QUESTION = `${API_PREFIX || ''}/question/modify`;
// 问题详情
export const QUERY_QUESTION_INFO = `${API_PREFIX || ''}/question/gain`;
// 问题下所有的答案列表
export const QUERY_Q_ANSWER_LIST = `${API_PREFIX || ''}/question/answer/list`;
// 问题标签相关问题列表
export const QUERY_Q_TAG_RELATION = `${API_PREFIX || ''}/question/related/list`;
// 问题收藏
export const Q_COLLECT = `${API_PREFIX || ''}/bookmark/plus`;
// 问题取消收藏
export const Q_COLLECT_CANCEL = `${API_PREFIX || ''}/bookmark/cut`;
// 问题答金配置
export const Q_AMOUNT_CONFIG = `${API_PREFIX || ''}/preset/getGift`;

// 回答
// 采纳回答
export const ADOPT_ANSWER = `${API_PREFIX || ''}/answer/adopt`;
// 答案收藏
export const A_COLLECT = `${API_PREFIX || ''}/bookmark/plus`;
// 答案取消收藏
export const A_COLLECT_CANCEL = `${API_PREFIX || ''}/bookmark/cut`;


// 问题 - 点赞，分享等
export const Q_LIKE = `${API_PREFIX || ''}/question/like`;
export const Q_SHARE = `${API_PREFIX || ''}/question/repost`;
export const Q_SUBSCRIBE = `${API_PREFIX || ''}/question/subscribe`;
// 答案 - 点赞，转发
export const A_LIKE = `${API_PREFIX || ''}/answer/like`;
export const A_SHARE = `${API_PREFIX || ''}/answer/repost`;
// 评论 - 点赞，踩，
export const C_LIKE = `${API_PREFIX || ''}/comment/like`;



// 问题单是否超时
export const CHECK_Q_EXPIRE = `${API_PREFIX || ''}/reward/expire/{code}`;
// 个人答金总额 - 余额
export const QUERY_WALLET_MONEY = `${API_PREFIX || ''}/wallet/master`;
// 获取微信支付appid等信息
export const QUERY_WX_APP_ID = `${API_PREFIX || ''}/pay/wxpay`;
// 获取微信支付二维码
export const CREATE_WX_QRCODE = `${API_PREFIX || ''}/pay/wxpay/qrcode`;
// 查询微信二维码支付状态
export const QUERY_WX_QRCODE_STATUS = `${API_PREFIX || ''}/pay/detail`;
// 微信充值 - 获取微信支付appid等信息
export const QUERY_WX_APP_ID_RECHARGE = `${API_PREFIX || ''}/recharge/wxpay`;
// 获取支付宝支付网关表单
export const GET_ALI_PAY_FORM = `${API_PREFIX || ''}/pay/alipay`;
// 支付宝充值
export const GET_ALI_PAY_FORM_RECHARGE = `${API_PREFIX || ''}/recharge/alipay`;
// 支付宝提现
export const ALI_PAY_WITHDRAW = `${API_PREFIX || ''}/withdraw/alipay`;
// 钱包支付
export const WALLET_PAY = `${API_PREFIX || ''}/pay/wallet`;

// 评论
// 评论列表
export const QUERY_COMMENT_LIST = `${API_PREFIX || ''}/comment/list`;
// 新增评论
export const ADD_COMMENT = `${API_PREFIX || ''}/comment/issue`;


// 收藏
// 收藏夹列表
export const QUERY_FAVORITES_DIR_LIST = `${API_PREFIX || ''}/favorites/list`;
// 新增收藏夹
export const ADD_FAVORITES_DIR = `${API_PREFIX || ''}/favorites/add`;
// 修改收藏夹
export const UPDATE_FAVORITES_DIR = `${API_PREFIX || ''}/favorites/update`;
// 删除收藏夹
export const DELETE_FAVORITES_DIR = `${API_PREFIX || ''}/favorites/delete/{id}`;
// 收藏夹下的问题、答案列表
export const QUERY_FAVORITES_DIR_DATA_LIST = `${API_PREFIX || ''}/bookmark/list`;
// 收藏夹下的问题列表
export const QUERY_FAVORITES_DIR_Q_LIST = `${API_PREFIX || ''}/question/favorites/list/{id}`;



// 个人中心
// 用户基本信息
export const QUERY_USER_BASE_INFO = `${API_PREFIX || ''}/per-center/user/{userId}`;
// 当前登录用户信息
export const QUERY_CURRENT_USER_INFO = `${API_PREFIX || ''}/user/gain`;
// 用户相关软件
export const QUERY_USER_SOFT = `${API_PREFIX || ''}/per-center/soft/{userId}`;
// 用户相关标签
export const QUERY_USER_TAG = `${API_PREFIX || ''}/per-center/tag/{userId}`;
// 新增标签
export const ADD_TAG = `${API_PREFIX || ''}/tag/add`;

// 指定用户最新问题
export const QUERY_USER_Q = `${API_PREFIX || ''}/per-center/questioning/{id}`;
// 指定用户最新回答
export const QUERY_USER_A = `${API_PREFIX || ''}/per-center/answering/{id}`;
// 指定用户的问题
export const QUERY_USER_QS = `${API_PREFIX || ''}/per-center/question/{id}`;
// 指定用户的回答
export const QUERY_USER_AS = `${API_PREFIX || ''}/per-center/answer/{id}`;
// 个人帮助人次以及获得答金总量
export const QUERY_USER_ASSIST_COUNT = `${API_PREFIX || ''}/per-center/assist/{userId}`;

// 我问，我答
export const MY_Q_UNCONFIRMED = `${API_PREFIX || ''}/question/unconfirmed/list`;
export const MY_Q_CLOSEING = `${API_PREFIX || ''}/question/closing/list`;
export const MY_Q_DRAFT = `${API_PREFIX || ''}/question/draft/list`;
export const MY_Q_SUBSCRIBE = `${API_PREFIX || ''}/question/subscribe/list`;
export const MY_Q_LIKED = `${API_PREFIX || ''}/question/liked/list`;
export const MY_Q_BOOKMARK = `${API_PREFIX || ''}/question/bookmark/list`;
export const MY_Q_PARTICIPANT = `${API_PREFIX || ''}/question/participant/list`;

export const MY_A_UNCONFIRMED = `${API_PREFIX || ''}/answer/unconfirmed/list`;
export const MY_A_CLOSEING = `${API_PREFIX || ''}/answer/closing/list`;
export const MY_A_DRAFT = `${API_PREFIX || ''}/answer/draft/list`;
export const MY_A_DRAFT_DETAIL = `${API_PREFIX || ''}/answer/draft/gain`;
export const MY_A_SUBSCRIBE = `${API_PREFIX || ''}/answer/subscribe/list`;
export const MY_A_LIKED = `${API_PREFIX || ''}/answer/liked/list`;
export const MY_A_BOOKMARK = `${API_PREFIX || ''}/answer/bookmark/list`;
export const MY_A_PARTICIPANT = `${API_PREFIX || ''}/answer/participant/list`;


// 答金库
// 充值记录
export const RECHARGE_LOG = `${API_PREFIX || ''}/wallet/paydetail`;
// 支付记录
export const PAY_LOG = `${API_PREFIX || ''}/wallet/giftdetail`;
// 消费记录
export const CONSUME_LOG = `${API_PREFIX || ''}/wallet/cashlog`;
// 退款记录
export const REFUND_LOG = `${API_PREFIX || ''}/wallet/paydetail`;
// 提现记录
export const WITHDRAW_LOG = `${API_PREFIX || ''}/wallet/withdrawlog`;
// 钱包支付
export const MONEYWALLETPAY = `${API_PREFIX || ''}/pay/wallet`;
// 支付宝充值
export const ZFBPAY = `${API_PREFIX || ''}/recharge/alipay`;
// 支付宝提现
export const ZFBWITHDRAW = `${API_PREFIX || ''}/withdraw/alipay`;



// 浏览历史
// 浏览列表
export const BROWSING_HISTORY_LIST = `${API_PREFIX || ''}/question/browse/list`;
// 删除浏览记录
export const DELETE_HISTORY = `${API_PREFIX || ''}/question/browse/delete/{id}`;
// 清空浏览记录
export const CLEAR_HISTORY = `${API_PREFIX || ''}/question/browse/clear`;


// 未读通知列表
export const UNREAD_NOTICES = `${API_PREFIX || ''}/letter/unread/notices`;
// 删除通知
export const DELETE_NOTICES = `${API_PREFIX || ''}/letter/read/{id}`;
// 清空通知
export const CLEAR_NOTICES = `${API_PREFIX || ''}/letter/readall`;
// 订阅通知
export const SUBSCRIBE_NOTICES = `${API_PREFIX || ''}/subscribe`;
// 建立私信聊天
export const SUBSCRIBE_MESSAGE = `${API_PREFIX || ''}/message`;

// 聊天联系人列表
export const CHAT_USER_LIST = `${API_PREFIX || ''}/letter/linkman`;
// 聊天历史列表
export const CHAT_HISTORY_LIST = `${API_PREFIX || ''}/letter/letters/{id}`;
// 聊天联系人删除
export const DELETE_CHAT_USER = `${API_PREFIX || ''}/letter/letters/{id}`;
// 聊天历史
export const QUERY_CHAT_HISTORY = `${API_PREFIX || ''}/letter/letters/{id}`;



// 验证码接口
export const SEND_CAPTCHA = `${API_PREFIX || ''}/sms-send`;
// 获取图形验证码
export const GET_IMAGE_CAPTCHA = `${API_PREFIX || ''}/captcha.jpg`;

// 上传图片
export const UPLOAD_FILE_OSS = `${API_PREFIX || ''}/file/upload`;
// 文件上传
export const UPLOAD_FILE_SINGLE = `${API_PREFIX || ''}/file/single`;
// 下载资源
export const DOWNLOAD_FILE = `${API_PREFIX || ''}/template/download1/{id}`;
